﻿@{
    int page = ViewBag.PageIndex;
    string kw = ViewBag.Keyword;
    int i = 0;
}
@model WeekWinProjectRiskMargins
<div class="content-box">
    <div class="content-box-header">
        <h3 style="cursor: s-resize;">周周盈方案资金管理</h3>
        
        <div class="clear"></div>
    </div>
    <div class="content-box-content">
        <div class="tab-content default-tab" id="tab1">
            <div class="">
                <form action="@Url.DomainRouteUrl(AreasConfig.Admin, "Index", "WeekWin")">
                    <select name="depart" class="">
                        <option value="1">--选择方案状态--</option>
                        <option value="2">Option 2</option>
                        <option value="3">Option 3</option>
                        <option value="4">Option 4</option>
                    </select>
                    <input type="text" name="kw" value="" class="text-input" placeholder="按登录名，姓名，手机号搜索"/>
                    <button type="submit" value="">搜索</button>
                </form>
            </div>
            <table>
                <thead>
                <tr>
                    <th>
                        <input class="check-all" type="checkbox">
                    </th>
                    <th>方案号</th>
                    <th>时间</th>
                    <th>类型</th>
                    <th>资金(元)</th>
                    <th>状态</th>
                    <th style="text-align: center">操作</th>
                </tr>
                </thead>
                <tbody>
                @foreach (var item in Model.Items)
                {
                    i++;
                    <tr class="@(i%2 == 0 ? "" : "alt-row")">
                        <td>
                            <input type="checkbox">
                        </td>
                        <td><a href="@Url.DomainRouteUrl(AreasConfig.Admin, new {controller = "WeekWin", action = "Detail", id = item.ProjectId})">@item.WeekWinProject.ProjectNumber</a></td>
                        <td>@item.AddTime.ToString("yyyy-MM-dd")</td>
                        <td>@(item.Type == 0 ? "减保证金" : "加保证金")</td>
                        <td>@item.AddMoney</td>
                        <td>@(item.AddState == 1 ? "等待处理" : "通过")</td>
                        <td projectid="@item.ProjectId">
                            @if (item.AddState == 1)
                            {
                                <a href="javascript:void(0);" mark="CapitalVerification">【审核通过】</a>
                            }
                            else
                            {
                                <a href="javascript:void(0);" class="disable">【已审核】</a>
                            }
                        </td>
                    </tr>
                }
                </tbody>
            </table>
        </div>
    </div>
</div>
